home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Mac OS 8.5 Updaters / RealPC⁄Soft Windows / RealPC / RealPC Upgrade Disk / UPCODE.INP < prev    next >
Encoding:
Text File  |  1998-08-24  |  834 b   |  35 lines

  1. l 200 2 0 1
  2. a
  3. mov si,5d    ;location of 2nd argument
  4. mov di,22a    ;location in above buffer (0x200) of serial number
  5. mov dx,4    ;number of digits in serial number
  6. cld            ;load going forward
  7. lodsb
  8. cmp    al,39    ;check if a letter
  9. jbe    113
  10. and al,5f    ;make sure we have upper case
  11. sub    al,37    ;convert 'a'-'f' to hex value
  12. and al,0f    ;make sure we only have a single hex digit
  13. mov cl,4    ;store the first in hi nibble
  14. shl al,cl
  15. mov bl,al    ;save it away
  16. lodsb        ;load next digit
  17. cmp    al,39    ;process the same as the previous digit
  18. jbe    124
  19. and al,5f
  20. sub    al,37
  21. and al,0f
  22. or    al,bl    ;and combine this low nibble with high nibble
  23. std            ;we need to store going backward (MSB in high mem)
  24. stosb
  25. dec    dx        ;decrement loop counter
  26. jnz    109
  27. int 3        ;go back to debugger
  28.  
  29. g=100
  30. w 200 2 0 1
  31. a 100
  32. jmp f000:fff0    ;jump to reboot address
  33.  
  34. g=100
  35.